package com.hl.wechat.demo.utils;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Calendar;

public class DateUtils {
    public static String format(Long l){
        Calendar calendar =Calendar.getInstance();
        calendar.setTimeInMillis(l);
        SimpleDateFormat simpleDateFormat =new SimpleDateFormat("YYYY-MM-dd hh:mm:ss");
        return  simpleDateFormat.format(calendar.getTime());
    }
}
